/**
 * @file rtu.h
 * @brief this is a brief description
 * @details this is the detail description.
 * @author fulong 
 * @data 7/23/2014
 * @version 1.0
 * @par Copyright (c):
 * @par First build
 *     version: fulong 
 *     data: 7/23/2014
 */
#ifndef __RTU_H__
#define __RTU_H__
#include "../../../hal_include/hal_types.h"
#include "../ms_protocol/common.h"

#define FRAME_LEST_LEN 8
#define FRAME_MAX_LEN 256

extern void rtu_mode_init(void);
extern void rtu_receive(void);
extern void rtu_send(void);
extern uint8 rtu_adjust_verify(mb_adu_struct *mb_adu);
extern void rtu_normal_rsp(mb_rsp_pdu_struct *mb_rsp_pdu);
extern void rtu_except_rsp(mb_excep_rsp_pdu_struct *mb_except_pdu);
extern void rtu_receive_frame_function(const uint8 data);

#endif /* __RTU_H__ */


